#容联云短信
from ronglian_sms_sdk import SmsSDK
import json
def send_message(mobile,code,time):
    accId = '8aaf07087bc82708017bf7c519d20e57'
    accToken = 'e80f8bdee0b5430cb001bb4bd303def9'
    appId = '8aaf07087bc82708017bf7c51aee0e5e'
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    datas = (code, time)
    resp = sdk.sendMessage(tid, mobile, datas)
    result = json.loads(resp)
    if result['statusCode'] == '000000':
        return True
    return False